﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Harmontronics.Model.Dto.Menu
{
    public class ShowDynamicRoutes
    {
        public int id { get; set; }
        public int? parentId { get; set; }
        public string title { get; set; }
        public string elIcon { get; set; }
        public string menuType { get; set; }
        public string menuSort { get; set; }
        public int keepAlive { get; set; }
        public DateTime? createTime { get; set; }
        public DateTime? updateTime { get; set; }
        public string createBy { get; set; }
        public string updateBy { get; set; }
        public int? enable { get; set; }
        public int? alwaysShow { get; set; } 
        public string path { get; set; }
        public string url { get; set; }
        public string redirect { get; set; }
        public string name { get; set; }
        public List<ShowDynamicRoutes>? Children { get; set; } = new List<ShowDynamicRoutes>();
    }
    public class DynamicRoutes
    {
        public string path { get; set; }
        public string component { get; set; }
        public string redirect { get; set; }
        public string name { get; set; }
        public Meta meta { get; set; }
        public List<DynamicRoutes>? Children { get; set; } = new List<DynamicRoutes>();
    }
    public class Meta
    {
        public string title { get; set; }
        public string elIcon { get; set; }
        public string[] roles { get; set; }
        public int? alwaysShow { get; set; }
        public int keepAlive { get; set; }
    }
}
